package com.yoona.system.controller;


import com.yoona.common.response.BaseResponse;
import com.yoona.common.utils.QiniuUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Email: m15602498163@163.com
 * @Author: yoonada
 * @Date: 2020/9/21
 * @Time: 8:56 下午
 * @Msg:
 */
@Api(tags = "七牛云")
@CrossOrigin
@RestController
@RequestMapping("/qiniu")
public class QiniuController {

    @ApiOperation("获取七牛云上传token")
    @GetMapping(value = "/getUpLoadToken")
    public BaseResponse<Object> getUpLoadToken(){
        return BaseResponse.success(QiniuUtil.getUpLoadToken());
    }

}
